package factory.func;

import factory.Computer;

/**普通工厂模式
 * Created by liuweijie on 2018/4/24.
 */
public class TestMain {


    public static void main(String[] args){
         Factory f = new AsusFactory();
         Computer c = f.getComputer();
         c.play();
         f=new LenvoFactory();
         f.getComputer().play();
    }
}
